import request from '@/utils/request'
// 发送验证码
export function smsCodeSend(params: {
  imgCode: string
  imgKey: string
  mobile: string
  type: string
}) {
  return request.post('mall.user.sms-code.send', params, { toast: false })
}
// 验证码登录
export function smsCodeLogin(params: {
  extra: object
  imgCode: string
  imgKey: string
  mobile: string
  smsCode: string
}) {
  return request.post<IUserInfo>('mall.user.sms-code-login', params)
}
